﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/Admin/Views/Shared/AdminSite.Master" Inherits="System.Web.Mvc.ViewPage<IPagedList<MensUnoShop.Models.Member>>" %>
<%@ Import Namespace="MvcPaging"%>  

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	MemberList
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <%using (Html.BeginForm("MemberList", "Member", FormMethod.Post, new { @class = "shBox" }))
      {%>
      E-Mail：<%:Html.TextBox("queryemail", ViewData["queryemail"])%><br />
      會員姓名：<%:Html.TextBox("queryname", ViewData["queryname"])%><br />
      <button type="submit" class="button">查詢訂單</button>
    <%} %>

    <table>
        <thead>
        	<tr>
                <th>帳號(E-Mail)</th>
                <th>姓名</th>
                <th>性別</th>
                <th>生日</th>
                <th>電話(O)</th>
                <th>電話(H)</th>
                <th>行動電話</th>
                <%--<th>婚姻</th>
                <th>學歷</th>
                <th>職業</th>
                <th>收入</th>--%>
                <th>國籍</th>
                <%--<th>地址</th>--%>
                <th></th>
            </tr>
        </thead>
        <tbody>
        <%if (Model != null)
            {%>
            <span><%= Html.Pager(Model.PageSize, Model.PageNumber, Model.TotalItemCount)%></span>

            <%foreach (var item in Model)
            {  %>
        	<tr>
                <th><%:item.EMAIL %></th>
                <th><%:item.FIRSTNAME %> <%:item.LASTNAME %></th>
                <th><%if (item.SEX) {%>男<% } else {%>女<% }%></th>
                <th><%:item.BIRTH %></th>
                <th><%:item.TELO %></th>
                <th><%:item.TELH %></th>
                <th><%:item.MOBILE %></th>
                <%--<th><%:item.ISMARRIED %></th>
                <th><%:item.EDU %></th>
                <th><%:item.JOB %></th>
                <th><%:item.INCOME %></th>--%>
                <th><%:item.COUNTRY %></th>
                <%--<th><%:item.ZIP %><%:item.CITY %><%:item.ADDRESS %><%:item.ADDRESS %></th>--%>
                <th><a href="MemberDetail/<%:item.MGUID %>">詳細資料</a></th>
            </tr>
            <%} %>
        <%} %>
        </tbody>
    </table>


</asp:Content>
